<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.www.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>运城市安全生产隐患排查治理信息系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath%>/css/style.css" rel="stylesheet" type="text/css"/>
	<script src="<%=basePath%>/js/js.js" type="text/javascript"></script>
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/dbdialog/lhgdialog.min.js<%=Util.LHGDIALOG%>"></script>
	<script type="text/javascript" src="<%=basePath%>/js/util.js"></script>
	<script type="text/javascript">
		function opdlg(id){
   			infoDialog('yhInfo','隐患详细信息','800','400','<%=path%>/zczb/_yhShow.action?yhId='+id+'');
		}
	</script>
  </head>
  
 <body style="background: #fff">
	<table border="0" cellpadding="0" cellspacing="0" align="center" id="mytable" class="infolist" style="width: 99%;">
		<tr class="cz">
			<th width="20%">隐患类型</th>
     		<th width="32%">自查标准</th>
     		<th width="8%">隐患级别</th>
     		<th width="8%">发现时间</th>
     		<th width="8%">隐患描述</th>
     		<th width="8%">是否整改</th>
     		<th width="8%" title="如隐患已经整改则该时间为整改完成时间，否则为整改期限">整改时间</th>
			<th width="8%" style="border-right:none">整改措施</th>
		</tr>
		<s:if test="%{objList.size>0}">
		  	<s:iterator id="obj" value="objList" status="x">
		  		<tr class="cz">
					<td align="center">${obj.yhType1Name}&nbsp;${obj.yhType2Name}&nbsp;${obj.yhType3}&nbsp;${obj.yhType4}</td>
		     		<td align="left">${obj.yhInfo }</td>
		     		<td align="center">
		     			<s:if test="%{#obj.yhType==0}">无隐患</s:if>
		     			<s:if test="%{#obj.yhType==1}"><font color="red"><a href="javascript:void(0)" onclick="opdlg('${obj.id }');" title="点击查看隐患信息">一般隐患</a></font></s:if>
		     			<s:if test="%{#obj.yhType==2}"><font color="red"><a href="javascript:void(0)" onclick="opdlg('${obj.id }');" title="点击查看隐患信息">重大隐患</a></font></s:if>
		     		</td>
		     		<s:if test="%{#obj.yhType==0}">
			     		<td align="center"></td>
			     		<td align="center"></td>
			     		<td align="center"></td>
			     		<td align="center"></td>
			     		<td align="center"></td>
		     		</s:if>
		     		<s:else>
			     		<td align="center"><s:date name="#obj.yhFxTime" format="yyyy-MM-dd"/> </td>
			     		<td align="center">${obj.yhQk }</td>
			     		<td align="center">${obj.yhIsZg==0?'<font color="red">否</font>':'是' }</td>
			     		<td align="center"><s:if test="%{#obj.yhIsZg==0}"><s:date name="#obj.yhZgTime" format="yyyy-MM-dd"/></s:if><s:else><s:date name="#obj.yhWcTime" format="yyyy-MM-dd"/></s:else> </td>
			     		<td align="center">
			     			<s:if test="%{#obj.yhZgType==1}">立即整改</s:if>
			     			<s:if test="%{#obj.yhZgType==2}">限期整改</s:if>
			     			<s:if test="%{#obj.yhZgType==3}">停产停业整顿</s:if>
			     		</td>
		     		</s:else>
				</tr>
		  		
		  	</s:iterator>						  
		</s:if>
		<s:else>
		 	<tr>
				<td colspan="8" height="40" style="text-align:center">
				  	无自查内容
				</td>
			</tr>
		</s:else>
	</table>
</body>
</html>
